import api from '@/api'

export const login = (params) => {
  return api.request({
    url: '/sys/login',
    method: 'post',
    data: params
  })
}

export const logout = () => {
  return api.request({
    url: '/sys/logout',
    method: 'post',
    data: ''
  })
}

export const navMenu = (token) => {
  return api.request({
    url: '/sys/navMenu',
    method: 'post',
    data: token
  })
}
